﻿<%@ Page Title="" Language="C#" AutoEventWireup="true" CodeBehind="Find.aspx.cs" Inherits="CNdotnet.Ezsocio.Web.Views.Friend.Find" %>
<asp:content id="Content2" contentplaceholderid="head" runat="server">
 <script type="text/javascript" src="/Content/jquery.json-1.2.js"></script>
 <script type="text/javascript" src="/Content/ui.js"></script>
 <script type="text/javascript" src="/Content/safeauth.js"></script>
 <script type="text/javascript" src="/Content/invite.js"> </script>
</asp:content>
<asp:content id="Content1" contentplaceholderid="MainContent" runat="server">      
<h2>查找好友！</h2>
<p><a href='javascript:void(0);' id='inviteLive'>查找Live Messager中的好友有谁在本站</a></p>
<div style='display:none' id='live'>
        <%if (ViewData["Token"] != null) { %>      
        您已经对该网站授予读取权限，接下来，您可以<a href='javascript:void(0);' id='doInviteLive'>获取好友列表</a><br /> 
        点击 <a href="Invite?action=delauth">这里</a> 删除本地同意票据<%} %>
    <% if (ViewData["Token"] == null) { %>
    <p>
        请访问<a href="<%=ViewData["ConsentUrl"]%>">Live网站</a> 来获取对live上用户数据的访问权限
    </p>
    <% }%>
</div>
<hr />
<p><a href='javascript:void(0);' id='inviteQQ'>查找QQ好友有谁在本站</a></p>
<div style="display:none" id='qq'>
 <form action="<%= Html.AttributeEncode(Url.Action("InviteQQ")) %>" method="POST" id='qqForm'>
              <input type="hidden"  id="p" name="p"/>
              <input type="hidden"  id="ts" name="ts" value='<%=ViewData["ts"]%>'/>      
              <input type="hidden"  id="cookies" name="cookies"/>      
              <table cellpadding="5" cellspacing="5" >
              <tr>
              <td>QQ号码：</td>
              <td><% =Html.TextBox("uid")%></td>
              <td></td>
              </tr>
               <tr>
              <td>QQ密码：</td>
              <td><% =Html.Password("pwd")%></td>
              <td></td>
              </tr>
                 <tr>
              <td>验证码：</td>
              <td><% =Html.TextBox("verifyCode")%></td>
              <td></td>
              </tr>
              <tr><td colspan="3"><div id='verifyCodeContainer' style="display:none;"><img id='verifyCodeImg'/><br /><a href='javascript:getVerifyImg()'>看不清楚，换一张</a></div></td></tr>
              </table>  
              <p><%= Html.SubmitButton("SubmitQQ", "获取QQ联系人", new { @class = "f-button", @onclick = "javascript:getE()" })%></p>
       </form>	
</div>
<hr />
<p><a href ='javascript:void(0);' id='inviteEmail'>查找邮箱的通讯录中好友有谁在本站</a></p>
<div style="display:none;width:65%;padding:15px;" id="email" >
<form action="<%= Html.AttributeEncode(Url.Action("InviteEmail")) %>" method="POST" id="mailform">
    <ul>
      <li>邮箱地址：<%=Html.TextBox("uid")%> @ <%=Html.DropDownList("", "EmailSystems")%></li>
      <li>邮箱密码：<%=Html.Password("pwd")%></li>
       <li><%= Html.SubmitButton("SubmitEmail", "查找", new { @class = "f-button" })%></li>
    </ul>    
 </form>
</div>   
<hr />
<p><a href ='javascript:void(0);' id='findExaxtBtn'>精确查找</a></p>
<div style="display:none;width:65%;padding:15px;" id="findExact">
    <ul>
      <li>邮箱地址：<%=Html.TextBox("exactEmail")%> <%= Html.SubmitButton("SubmitExactBtn", "查找", new { @class = "f-button" })%></li>
      <li>真实姓名：<%=Html.TextBox("trueName")%> <%= Html.SubmitButton("SubmitExactByName", "查找", new { @class = "f-button" })%></li>
    </ul>   
</div>
<div class="ui-dialog-content" id="dialogContent"  style='overflow:auto;height:380px;padding:15px;display:none;' >
<img src='/Content/Images/loading.gif' id='loadImg' style="display:none" />    
<div id='result' style="display:none" class='modalMessage'></div>
<form action="<%= Html.AttributeEncode(Url.Action("AddFriend")) %>" id="addForm" style="display:none">  
    <table cellpadding='5' cellspacing='5' id='existAccountList'>
     <tr>
       <td width='80px'  style="cursor:pointer;" id='chooseHeader' onclick="chooseAll('existAccountList')">全选</td>
       <td width='200px'>姓名</td><td>电子邮件</td>
     </tr>
    </table>
     <div style="padding-top:10px;padding-bottom:10px;">请选择好友分组:<%=Html.DropDownList("","MyFriendGroup")%></div>  
    <div><%= Html.SubmitButton("AddFriend", "加为好友", new { @class = "f-button" })%><%= Html.SubmitButton("Skip", "跳过", new { @class = "f-button", onclick = "sendInvite();return false;" })%></div>

  </form>
<form action="<%= Html.AttributeEncode(Url.Action("SendInvite")) %>" id="sendForm" style="display:none">  
    <table cellpadding='5' cellspacing='5' id='contractList'>
     <tr>
       <td width='80px'  style="cursor:pointer;" onclick="chooseAll('contractList')">全选</td>
       <td width='200px'>姓名</td><td>电子邮件</td>
     </tr>
    </table>  
    <div><%= Html.SubmitButton("SendInvite", "邀请为好友", new { @class = "f-button" })%></div>
  </form>
 </div>
</asp:content>

